# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-referencing
pkgver=0.35.0
pkgrel=0
pkgdesc="Cross-specification JSON referencing"
url="https://github.com/python-jsonschema/referencing"
arch="noarch"
license="MIT"
depends="
	py3-attrs
	py3-rpds-py
	"
makedepends="
	py3-gpep517
	py3-hatch-vcs
	py3-hatchling
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/python-jsonschema/referencing/releases/download/v$pkgver/referencing-$pkgver.tar.gz"
builddir="$srcdir/referencing-$pkgver"
options="!check" # circular with jsonschema

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
c637a3767a7d03445adb14bcb4c1e9c9a069779d31c5043f300e34398c9c728dfe09cdf9601516a96280d6c095740114e3bd4a6b5103f8a1938b1be6b9cb9cb3  referencing-0.35.0.tar.gz
"
